package nc.bs.hrppl.piappl.event;

import nc.bs.businessevent.IBusinessEvent;
import nc.bs.businessevent.IBusinessListener;
import nc.bs.businessevent.bd.BDCommonEvent;
import nc.vo.hrppl.pjapplication.AggPjapplVO;
import nc.vo.pub.BusinessException;

public class PJApplApproveListener implements IBusinessListener {
    @Override
    public void doAction(IBusinessEvent event) throws BusinessException {
        AggPjapplVO[] vos = getBill(event);
        String eventType = event.getEventType();
        if("1020".equals(eventType)){// 审批通过

        }
    }

    protected AggPjapplVO[] getBill(IBusinessEvent event) {
        BDCommonEvent e = (BDCommonEvent) event;
        return (AggPjapplVO[]) e.getObjs();
    }
}
